int removeElement(int* nums, int numsSize, int val) {
	int tmp[100];
	int flag = 0;
	int count = 0;
	for (int i = 0; i < numsSize; i++) {
		if (nums[i] == val)
			count++;
		else {
			tmp[flag] = nums[i];
			flag++;
		}
	}
	memcpy(nums, tmp, sizeof(int) * (flag));
	return numsSize - count;
}
